#!/bin/bash

function docker-compose() {
  docker run \
    -v "$(pwd)":"$(pwd)" \
    -v /var/run/docker.sock:/var/run/docker.sock \
    -e COMPOSE_PROJECT_NAME=$(basename "$(pwd)") \
    --workdir="$(pwd)" \
    -i --rm \
    docker/compose:1.8.1 $@
}

function mysqldump() {
  docker run \
    -i --rm \
    mariadb mysqldump $@
}

function wput() {
  docker run \
    -v "$(pwd)":"$(pwd)" \
    --workdir="$(pwd)" \
    -i --rm \
    candlewaster/wput $@
}
